home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / dsp / 56000tar.z / 56000tar / 56000 / flts / iir2.asm < prev    next >
Assembly Source File  |  1991-11-26  |  802b  |  22 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAIMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; Last Update 15 Jul 87   Version 1.0
  6. ;
  7.                                                                                                                                
  8. iir2    macro
  9. iir2    ident   1,0
  10. ;
  11. ;       IIR2 - Implements 2nd order IIR filter with only poles,
  12. ;               uses coefficient scaling
  13. ;
  14.         ori     #$08,mr         ;set scaling mode
  15.         move    x:(r0)+,x0   y:(r4)+,y0 ;1st state, b1
  16.         mac     x0,y0,a  x:(r0),x1 y:(r4)-,y0
  17.         macr    x1,y0,a  x0,x:(r0)-
  18.         move    a,x:(r0)
  19.         andi    #$f7,mr         ;remove scaling mode
  20.         endm
  21.